<%@ page import="java.util.List" %>
<%@ page import="com.student" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/23 0023
  Time: 9:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table align="center"border="">
    <tr>
        <td>用户编号</td>
        <td>用户姓名</td>
    </tr>

<%
    List<student> list= (List<student>) request.getAttribute("key");
    for (student s:list
         ) {%>
        <tr align="center">
       <td> <%=(s.getId())%></td>
            <td>    <%=(s.getName())%></td></tr>
    <%}
%>
</table>
</body>
</html>
